package org.yang.common.core.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import org.yang.common.i18n.constant.I18nMessageConstant;

/**
 * 用户状态枚举
 *
 * @author: lslands
 * @description:
 * @version：v1.0
 * @date: 2024/6/3 00:30
 */
@Getter
public enum UserStatusEnum implements IBaseEnum<Integer> {
    /**
     * 离线
     */
    OFFLINE(I18nMessageConstant.OFFLINE,0),
    /**
     * 在线
     */
    ONLINE(I18nMessageConstant.ONLINE,1),
    /**
     * 锁定
     */
    LOCK(I18nMessageConstant.LOCK,2),
    /**
     * 过期
     */
    OVERDUE(I18nMessageConstant.OVERDUE,3),
    /**
     * 未授权
     */
    UNAUTHORIZED(I18nMessageConstant.UNAUTHORIZED,4),
    /**
     * 禁用
     */
    DISABLE(I18nMessageConstant.DISABLE,5),
    ;


    @JsonValue
    private final Integer value;
    private final String label;

    UserStatusEnum(String label, Integer value) {
        this.label = label;
        this.value = value;
    }

}
